From 4008fb3e4d7c1d31d9c2a318f9aa528984a05966 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 15 Feb 2007 14:38:08 +0000 Subject: [PATCH] Remove unnecessary check from HVM builder. Thanks to Guy Zana for spotting this. Signed-off-by: Keir Fraser --- tools/libxc/xc_hvm_build.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index dd180cca8d..28bc512218 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -214,15 +214,6 @@ static int setup_guest(int xc_handle, v_start, v_end, elf_uval(&elf, elf.ehdr, e_entry)); - if ( (v_end - v_start) > ((unsigned long long)nr_pages << PAGE_SHIFT) ) - { - PERROR("Initial guest OS requires too much space: " - "(%lluMB is greater than %lluMB limit)\n", - (unsigned long long)(v_end - v_start) >> 20, - ((unsigned long long)nr_pages << PAGE_SHIFT) >> 20); - goto error_out; - } - if ( (page_array = malloc(nr_pages * sizeof(xen_pfn_t))) == NULL ) { PERROR("Could not allocate memory.\n"); -- 2.30.2